/**
 * @projectName: java-daily-questions
 * @package: PACKAGE_NAME
 * @className: Account
 * @author: ZM
 * @description: 账户实体类
 * @date: 2021/8/21 18:17
 * @version: 1.0
 */
public class Account {

    private int balance;

    public Account(int balance) {
        this.balance = balance;
    }

    public void income(int money) {
        this.balance += money;
    }

    public void expenditure(int money) {
        this.balance -= money;
    }

    public int getBalance() {
        return balance;
    }
}
